var mainPanelWidth =0;
var mainPanelHeight =0;


//标准滚动条样式
var my_scroll_cs = "overflow-y:auto;scrollbar-face-color:#D7E1EE;scrollbar-highlight-color:#ffffff;scrollbar-Shadow-color:#D7E1EE;scrollbar-3dlight-color:#99BBE8;scrollbar-arrow-color:#3968AC;scrollbar-track-color:#D7E1EE;scrollbar-darkshadow-color:#99BBE8;";

//如tabpanel中的主panel是gridpanel，则设置tbar,bbar样式。
var topBarStyle = 'border-left: 0 none;border-right: 0 none;border-top: 0 none;';
var bottomBarStyle = 'border-left: 0 none;border-right: 0 none;border-bottom: 0 none;';
var bottomBarStyle_1 = 'border-left: 0 none;border-right: 0 none;';
var panelStyle = 'border-left: 0 none;border-right: 0 none;';
var panelMainStyle = 'background-color:#DFE8F6;border:0px solid #DFE8F6;';

//所有field的中文样式
var labelStyle = 'color:red;';

//页面只有一个grid的时候的pageSize
var colNum1 = 20;
//页面有两个grid的时候表头的pageSize
var colNum2_h = 6;
//页面有两个grid的时候表体的pageSize
var colNum2_b = 12;

//所有双击可以修改的单元格的背景色
var editColor = "#FFE4CA";

/*
请勿删除，谢谢！
//各搜索框内的已选中标记
var comboBoxRemark = '√ ';
//判断combo中显示文字是否是以str开始的
function comboHasSelect(combo){if(combo&&comboBoxRemark){var v=combo.getEl().dom.value;if(v.indexOf(comboBoxRemark)==-1){return false;}else{if(v.substring(0,comboBoxRemark.length)==comboBoxRemark){return true;}else{return false;}}}else{return false;}};
//点击combo后触发的函数
function comboOnSelect(combo,record,index){combo.getEl().dom.value=comboBoxRemark+combo.getEl().dom.value;};
//聚焦combo后触发的函数
function comboOnFocus(combo){var v=combo.getEl().dom.value;if(v.indexOf(comboBoxRemark)!=-1){combo.getEl().dom.value=v.replace(comboBoxRemark,'');}};
*/

//bbar的显示文字
var displayMsgOfBbar = '<span>显示第<span style="color:green;font-size:12px;font-weight:bold;">{0}</span>条到第<span style="color:blue;font-size:12px;font-weight:bold;">{1}</span>条记录，一共<span style="font-weight:bold;color:red;font-size:12px">{2}</span>条记录</a>';
var emptyMsgOfBbar = '<span style="color:red">没有查询到相关信息<span>';
var displayMsgOfTbar = '<span>显示第<span style="color:green;font-size:12px;font-weight:bold;">{0}</span>条到第<span style="color:blue;font-size:12px;font-weight:bold;">{1}</span>条记录，一共<span style="font-weight:bold;color:red;font-size:12px">{2}</span>条记录</a>';
var emptyMsgOfTbar = '<span style="color:red">没有查询到相关信息<span>';

//标准树结构叶子文件的图标路径
var treeIconOfFolder = basepath + '/imgs/icon/tree-folder.png';
var treeIconOfFile = basepath + '/imgs/icon/tree-file.png';

//权限节点id对照
var authId = new Array();
//角色权限相关
authId[68] = 768;//角色添加
authId[69] = 769;//角色查询
authId[70] = 770;//角色人员管理
authId[71] = 771;//角色人员添加
authId[72] = 772;//角色人员移除
authId[73] = 773;//角色权限管理
authId[74] = 774;//角色权限修改
authId[75] = 775;//角色删除